//
// File  : Global.cpp
// Team  : Dangling Pointers
// Class : CST236 - Software Testing
//
// Definitions for global routines to be used throughout
// program.
//

#include <limits>
#include <cstdlib>
#include <iostream>
#include "Global.h"
#include <string>

//
// clearConsole() : void
//
// function will call OS specific system routines for
// clearing the console buffer
//
void clearConsole()
{
#ifdef _WIN32
	std::system("cls");
#else
	std::system("clear");
#endif
}

//
// pressEnterToContinue() : void
//
// function will prompt user to press ENTER before
// console gets cleared.
//
void pressEnterToContinue()
{
	std::cout << "Press ENTER to continue..." << std::endl;
	std::cin.ignore(std::numeric_limits <std::streamsize>::max(), '\n');
}